import request from '@/utils/request'
// 登录
export function login(data) {
  return request({
    url: '/park/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/parking/statistics/charge/typeProportion',
    method: 'get'
  })
}
// 退出登录
export function logout() {
  return request({
    url: '/park/login',
    method: 'post'
  })
}

// 企业列表
/**
 *
 * @param {} params {name:string,page:string,pageSize:string}
 * @returns
 */
export function getEnterPriseslistAPI(params) {
  return request({
    url: '/park/enterprise',
    method: 'GET',
    params
  })
}

// 删除企业
/**
 *
 * @param {*} id string
 * @returns
 */
export function delEnterPriseAPI(id) {
  return request({
    url: '/park/enterprise/${id}',
    method: 'DELETE'
  })
}
